namespace Leey.Net.eTerm
{
    using System;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Web.Services;
    using System.Web.Services.Description;
    using System.Web.Services.Protocols;
    using System.Windows.Forms;

    [WebServiceBinding(Name="egwsSoap", Namespace="http://tempuri.org/"), DebuggerStepThrough, DesignerCategory("code")]
    public class egws : SoapHttpClientProtocol
    {
        public egws()
        {
            base.Url = "http://localhost/WS/egws.asmx";
        }

        public egws(string p_strUrl)
        {
            try
            {
                base.Url = p_strUrl;
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
            }
        }

        public IAsyncResult BegingetEgSoap(string p_str, AsyncCallback callback, object asyncState)
        {
            return base.BeginInvoke("getEgSoap", new object[] { p_str }, callback, asyncState);
        }

        public string EndgetEgSoap(IAsyncResult asyncResult)
        {
            return (string) base.EndInvoke(asyncResult)[0];
        }

        [SoapDocumentMethod("http://tempuri.org/getEgSoap", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)]
        public string getEgSoap(string p_str)
        {
            string str;
            try
            {
                str = (string) base.Invoke("getEgSoap", new object[] { p_str })[0];
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message);
                throw;
            }
            return str;
        }
    }
}
